class Person:
    def __init__(self,name,age):
        print("Preson的构造方法")
        self.name=name
        self.age=age1

    def say_age(self):
        print(self.name,"的年龄是",self.age)


class Student(Person):

    def __init__(self,name,age,score):
         #子类并不会自动调用父类的__init__方法，我们必须显示调用它。
        #Person.__init__(self,name,age)
        #super(Student,self).__init__(name,age)
        print("Student的构造方法")
        self.score = score

s1=Student("张三",18,99)
#s1.say_age
print(dir(s1))




